package com.cucn.ingmall.product.dao;

import com.cucn.ingmall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author kouchaojie
 * @email kou1688@foxmail.com
 * @date 2021-11-17 16:27:03
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {
    /**
     * 修改spu的上架状态
     *
     * @param spuId spuId
     * @param code  状态码
     */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") Integer code);
}
